<?php

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


require_once (JPATH_COMPONENT_SITE.DS.'classes'.DS.'booking.helper.php');


// Set the table directory
JTable::addIncludePath(JPATH_COMPONENT.DS.'tables');

//Set filepath
$params =& JComponentHelper::getParams('com_taxibooking');
define('COM_TAXIBOOKING_FILEPATH',    JPATH_ROOT.DS.$params->get($path, 'components/com_taxibooking/upload'));

// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');

// Require specific controller if requested
if( $controller = JRequest::getCmd('controller') ) {
	$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
	if (file_exists($path)) {
		require_once $path;
	} else {
		$controller = '';
	}
}

//Create the controller
$classname  = 'TaxiBookingController'.$controller;
$controller = new $classname( );

// Perform the Request task
$controller->execute( JRequest::getCmd('task'));
//

$controller->redirect();

?>